package tao.peng.fei.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tao.peng.fei.dao.UserMapper;
import tao.peng.fei.model.User;
import tao.peng.fei.service.IUserService;

/**
 * @Author: 陶鹏飞
 * @Description:
 * @Date: 2018/6/12-16:01
 * @email: taopengfei1223@foxmail.com
 **/
@Service("userService")
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserById(int userId) {
        return this.userMapper.selectByPrimaryKey(userId);
    }
}
